import { get, post } from "../utils/request";

/**
 * 获取用户歌单接口
 * @param {*} data
 * @returns
 */
export const userAPI = (userId) => get("/user/playlist?uid=" + userId);

/**
 * 收藏的歌手列表
 * @returns
 */
export const singAPI = () => post("/artist/sublist");

/**
 * 获取歌单id
 * @param {*} id
 * @returns
 */
export const Song = (id) => post("/playlist/detail?id=" + id);

/**
 * 最近播放歌曲接口
 * 错误接口，无数据
 * @returns
 */
export const recentsongAPI = () => get("/record/recent/song?limit=10");

/**
 * 最近播放视频接口
 * @returns 
 */
export const recentVideoAPI = () =>get("/record/recent/video?limit=10")

/**
 * 最近播放歌单
 * @returns 
 */
export const RecentPlaylistsAPI = () =>get('/record/recent/playlist?limit=10')